import ACT from '../actionType'
const initState = {
  userList: {
    page: 1,
    pageSize: 10,
    sort: {},
    filter: {}
  }
}
const reduce = {
  [ACT.USER_USERLIST_GET]: (state, { type, payload, meta = {} }) => ({
    ...state,
    userList: {
      ...payload.data,
      page: meta.page,
      pageSize: meta.pageSize,
      sort: meta.sort,
      filter: meta.filter
    }
  })
}
export default { initState, reduce }
